export interface LoginRequestData {
  /** admin 或 editor */
  account: string
  /** 密码 */
  pwd: string
  /** 验证码 */
  code: string
}
export interface LoginCodeRequestData {
  /** 随机码 */
  id: string
}

export type LoginCodeResponseData = ApiResponseData<string>

export type LoginResponseData = ApiResponseData<{ token: string }>

export type UserInfoResponseData = ApiResponseData<{ username: string; roles: string[] }>
